//
//  HeadlineModel.m
//  PhoenixNews
//
//  Created by dllo on 16/1/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HeadlineModel.h"

@implementation HeadlineModel
- (void)dealloc {
    [_thumbnail release];
    [_title release];
    [super dealloc];
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"style"]) {
        self.images = value[@"images"];
        
    }
    if ([key isEqualToString:@"link"]) {
        self.url = value[@"url"];
    }
    
    if ([key isEqualToString:@"data"]) {
        self.cover_image_url = value[@"cover_image_url"];
        self.name = value[@"name"];
        self.price = value[@"price"];
        self.url = value[@"url"];
        self.favorites_count = value[@"favorites_count"];
    }
    
}
@end
